package com.shujia.wyh.day14.danlidemo1;

/*
    单例模式：
        1、饿汉式
 */
public class StudentDemo {
    public static void main(String[] args) {
        Student s1 = Student.getStudent();
        Student s2 = Student.getStudent();
        System.out.println(s1==s2);
    }
}
